/*
 *  txdnet.cn tonydon
 * 
 */
package cn.txdnet.txcms.query;

import java.sql.Date;
import txdnet.util.StaticMark;

/**
 *
 * @author txdnet
 */
public class HotShopQuery extends BaseQuery {

    private static final long serialVersionUID = -7779376440834415696L;
    
    private Long shopid;
    private Byte pubstate;
    private Byte iscmt;
    private Integer beginHitNum;
    private Integer endHitNum;
    private Byte shoptype;
    private Integer cid;
    
    private Date pubBeginTime;
    private Date pubEndTime;
    private Date updateBeginTime;
    private Date updateEndTime;
    
    private Long pubBeginTimeMs;
    private Long pubEndTimeMs;
    private Long updateBeginTimeMs;
    private Long updateEndTimeMs;
    private String titleKeyword;


    @Override
    public void filter() {
        if (pubBeginTime != null && pubEndTime != null) {
            pubBeginTimeMs = pubBeginTime.getTime();
            pubEndTimeMs = pubEndTime.getTime();
        }
        if (updateBeginTime != null && updateEndTime != null) {
            updateBeginTimeMs = updateBeginTime.getTime();
            updateEndTimeMs = updateEndTime.getTime();
        }
        if (titleKeyword != null) {
            titleKeyword = StaticMark.STR_PERCENT.concat(titleKeyword).concat(StaticMark.STR_PERCENT);
        }
    }

    /**
     * @return the shopid
     */
    public Long getShopid() {
        return shopid;
    }

    /**
     * @param shopid the shopid to set
     */
    public void setShopid(Long shopid) {
        this.shopid = shopid;
    }

    /**
     * @return the pubstate
     */
    public Byte getPubstate() {
        return pubstate;
    }

    /**
     * @param pubstate the pubstate to set
     */
    public void setPubstate(Byte pubstate) {
        this.pubstate = pubstate;
    }

    /**
     * @return the beginHitNum
     */
    public Integer getBeginHitNum() {
        return beginHitNum;
    }

    /**
     * @param beginHitNum the beginHitNum to set
     */
    public void setBeginHitNum(Integer beginHitNum) {
        this.beginHitNum = beginHitNum;
    }

    /**
     * @return the endHitNum
     */
    public Integer getEndHitNum() {
        return endHitNum;
    }

    /**
     * @param endHitNum the endHitNum to set
     */
    public void setEndHitNum(Integer endHitNum) {
        this.endHitNum = endHitNum;
    }

    /**
     * @return the shoptype
     */
    public Byte getShoptype() {
        return shoptype;
    }

    /**
     * @param shoptype the shoptype to set
     */
    public void setShoptype(Byte shoptype) {
        this.shoptype = shoptype;
    }

    /**
     * @return the cid
     */
    public Integer getCid() {
        return cid;
    }

    /**
     * @param cid the cid to set
     */
    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     * @return the pubBeginTime
     */
    public Date getPubBeginTime() {
        return pubBeginTime;
    }

    /**
     * @param pubBeginTime the pubBeginTime to set
     */
    public void setPubBeginTime(Date pubBeginTime) {
        this.pubBeginTime = pubBeginTime;
    }

    /**
     * @return the pubEndTime
     */
    public Date getPubEndTime() {
        return pubEndTime;
    }

    /**
     * @param pubEndTime the pubEndTime to set
     */
    public void setPubEndTime(Date pubEndTime) {
        this.pubEndTime = pubEndTime;
    }

    /**
     * @return the updateBeginTime
     */
    public Date getUpdateBeginTime() {
        return updateBeginTime;
    }

    /**
     * @param updateBeginTime the updateBeginTime to set
     */
    public void setUpdateBeginTime(Date updateBeginTime) {
        this.updateBeginTime = updateBeginTime;
    }

    /**
     * @return the updateEndTime
     */
    public Date getUpdateEndTime() {
        return updateEndTime;
    }

    /**
     * @param updateEndTime the updateEndTime to set
     */
    public void setUpdateEndTime(Date updateEndTime) {
        this.updateEndTime = updateEndTime;
    }

    /**
     * @return the pubBeginTimeMs
     */
    public Long getPubBeginTimeMs() {
        return pubBeginTimeMs;
    }

    /**
     * @param pubBeginTimeMs the pubBeginTimeMs to set
     */
    public void setPubBeginTimeMs(Long pubBeginTimeMs) {
        this.pubBeginTimeMs = pubBeginTimeMs;
    }

    /**
     * @return the pubEndTimeMs
     */
    public Long getPubEndTimeMs() {
        return pubEndTimeMs;
    }

    /**
     * @param pubEndTimeMs the pubEndTimeMs to set
     */
    public void setPubEndTimeMs(Long pubEndTimeMs) {
        this.pubEndTimeMs = pubEndTimeMs;
    }

    /**
     * @return the updateBeginTimeMs
     */
    public Long getUpdateBeginTimeMs() {
        return updateBeginTimeMs;
    }

    /**
     * @param updateBeginTimeMs the updateBeginTimeMs to set
     */
    public void setUpdateBeginTimeMs(Long updateBeginTimeMs) {
        this.updateBeginTimeMs = updateBeginTimeMs;
    }

    /**
     * @return the updateEndTimeMs
     */
    public Long getUpdateEndTimeMs() {
        return updateEndTimeMs;
    }

    /**
     * @param updateEndTimeMs the updateEndTimeMs to set
     */
    public void setUpdateEndTimeMs(Long updateEndTimeMs) {
        this.updateEndTimeMs = updateEndTimeMs;
    }

    /**
     * @return the titleKeyword
     */
    public String getTitleKeyword() {
        return titleKeyword;
    }

    /**
     * @param titleKeyword the titleKeyword to set
     */
    public void setTitleKeyword(String titleKeyword) {
        this.titleKeyword = titleKeyword;
    }

    /**
     * @return the iscmt
     */
    public Byte getIscmt() {
        return iscmt;
    }

    /**
     * @param iscmt the iscmt to set
     */
    public void setIscmt(Byte iscmt) {
        this.iscmt = iscmt;
    }
}
